<template>
  <div>
    <h2>总价值: {{ $store.getters.totalPrice }}</h2>
    <h2>总价值: {{ $store.getters.totalPriceCountGreaterN(3) }}</h2>
  </div>
</template>

<script>
import { useState } from "../hooks/useState";
export default {
  setup() {
    const storeState = useState(["counter", "name", "age", "height"]);
    const storeState1 = useState({
      sName: (state) => state.name,
    });
    return {
      ...storeState,
      ...storeState1,
    };
  },
};
</script>

<style scoped>
</style>